package com.test.constants;

public enum ErrorCode {
	
	SUCCESS(0, "成功"),
	
	ACCOUNT_REGISTER_EXISTED(101, "账户已存在"),
	ACCOUNT_USER_NOT_FOUND(102, "用户不存在"),
	ACCOUNT_INCORRECT_PASSWORD(103, "密码不正确");
	
    private int errCode;
	private String errMsg;
	
	private ErrorCode(int errCode, String errMsg) {
		this.errCode = errCode;
		this.errMsg = errMsg;
	}
	public int getErrCode() {
		return errCode;
	}
	public void setErrCode(int errCode) {
		this.errCode = errCode;
	}
	public String getErrMsg() {
		return errMsg;
	}
	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
